#include <stdlib.h>
#include <stdio.h>

#define M 3
#define N 4


// 数组指针
int *find_num(int(*p)[N],int num)
{
	//非法操作:空指针
	if (num >M - 1 || num < 0)
		return NULL;
	return *(p+ num);



}




int main(void)
{
	int arr[M][N] = {1,2,3,4,5,6,7,8,9,10,11,12};
	int *res;
	int i = 0;
	res = find_num(arr,-1);	
	if (res != NULL)
	{
		for (i=0;i<N;i++,res++)
			printf("%d  ",*res);
	}else
	{
		printf("can not find!");
	}
	printf("\n");
	return 0;
}
